package com.sunshine.serialport.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author:xiayingjie
 * @createTime:2021-04-01
 */
@Table(name = "serialData")
@Slf4j
@Data
@Entity
public class SerialData extends IdEntity{


    @Column(name="mainData",length=256, nullable=false)
    private String mainData;
    @Column(name="data1",length=256)
    private String data1;
    @Column(name="data2",length=256)
    private String data2;
    @Column(name="data3",length=256)
    private String data3;

    @Column(name="createAt",nullable=false)
    private long createAt;//注册时间

public SerialData(){
        createAt=System.currentTimeMillis();
    }
}
